package de.unidue.langtech.teaching.pp.example;

import org.apache.uima.analysis_engine.AnalysisEngineProcessException;
import org.apache.uima.fit.component.JCasAnnotator_ImplBase;
import org.apache.uima.fit.util.JCasUtil;
import org.apache.uima.jcas.JCas;

import de.tudarmstadt.ukp.dkpro.core.api.segmentation.type.Token;

public class TwitterEmoticonCounter
    extends JCasAnnotator_ImplBase
{

    @Override
    public void process(JCas jcas)
        throws AnalysisEngineProcessException
    {

        for (Token token : JCasUtil.select(jcas, Token.class)) {
            System.out.println(token.getCoveredText());
            System.out.println(token);
        }
    }
}